home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / update~4.z / update~4 / lib_stdio_printf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  483 b   |  31 lines

  1. /*                p r i n t f
  2.  *
  3.  * Formatted output to stdout. The function returns the number of bytes
  4.  * output on success and EOF on failure.
  5.  *
  6.  * Patchlevel 1.0
  7.  *
  8.  * Edit History:
  9.  */
  10. #define __SRC__
  11. #include "stdiolib.h"
  12.  
  13. /*LINTLIBRARY*/
  14. /*VARARGS1*/
  15. /*ARGSUSED*/
  16.  
  17. int printf(fmt, va_alist)
  18.  
  19. CONST char *fmt;                /* format */
  20. va_dcl
  21.  
  22. {
  23.   va_list arg;                /* argument vector */
  24.   int v;                /* return value */
  25.  
  26.   va_start(arg);
  27.   v = vfprintf(stdout, fmt, arg);
  28.   va_end(arg);
  29.   return v;
  30. }
  31.